<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <button id="box">测试</button>

    <script src="js/app.js"></script>
    <script>
        const box = document.getElementById('box');
        box.addEventListener('tap', (e) => {
            console.log('tap事件触发', e);
        });
    </script>
</body>
</html>